package com.imooc.o2o.service;

import com.imooc.o2o.dto.ShopExecution;
import com.imooc.o2o.entity.Shop;

import java.io.InputStream;

/**
 * @author 徐老板
 * @date 2020/1/4   18:58
 */
public interface ShopServce {

    ShopExecution addShop(Shop shop, InputStream shopImgInputStream, String fileName);

    //通过店铺id获取店铺信息
    Shop getByShopId(int shopId);

    //更新店铺信息 包括对图片的处理
    ShopExecution mpdifyShop(Shop shop,InputStream shopImgInputStream,String fileName);

    //分页展示店铺信息
    ShopExecution getShopList(Shop shopCondition,int pageIndex,int pageSize);
}
